using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Admin_AddPriceFlight : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAddPrice_Click(object sender, EventArgs e)
    {

        int FlightID = Convert.ToInt32(DropDownList1.SelectedValue);
        int BussinessPrice = Convert.ToInt32(txtPriceBussiness.Text);
        int FirstPrice = Convert.ToInt32(txtPriceFirst.Text);
        int ClubPrice = Convert.ToInt32(txtPriceClub.Text);
        int ChildDiscount = Convert.ToInt32(txtChildDiscount.Text);
        int SenioDiscount = Convert.ToInt32(txtSenioDiscount.Text);

        AddPriceBAL addPrice = new AddPriceBAL();
        bool result = addPrice.AddPrice(FlightID, BussinessPrice, FirstPrice, ClubPrice, ChildDiscount, SenioDiscount);
        if (result == true)
        {
            Label2.Text = "Add Price Flight successful!!";
            Response.Redirect("~/Admin/GetFlightList.aspx");
        }
        else
            Label2.Text = "Erorr";
    }
}
